package com.hxzy.service;

import com.github.pagehelper.PageInfo;
import com.hxzy.controller.anonymous.merchandiser.resp.MerchandiserProcessResp;
import com.hxzy.controller.front.merchandiser.req.EnterpriseInfoReq;
import com.hxzy.controller.front.merchandiser.req.EnterpriseReq;
import com.hxzy.controller.front.merchandiser.resp.EnterpriseResp;
import com.hxzy.controller.vue.merchandiser.req.MerchandiserReq;
import com.hxzy.controller.vue.merchandiser.req.ProcessReq;
import com.hxzy.controller.vue.merchandiser.resp.MerchandiserResp;
import com.hxzy.entity.Merchandiser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 11452
* @description 针对表【merchandiser(商家信息)】的数据库操作Service
* @createDate 2023-08-28 11:54:55
*/
public interface MerchandiserService extends IService<Merchandiser> , VueLoginService{

    /**
     * 根据手机查询信息和审核状态
     * @param phone
     * @return
     */
    MerchandiserProcessResp searchByPhone(String phone);

    PageInfo<MerchandiserResp> search(MerchandiserReq req);

    /**
     * 审核商家信息
     * @param req
     * @return
     */
    boolean process(ProcessReq req);

    /**
     * 手机端-商家分页查询
     * @param req
     * @return
     */
    PageInfo<EnterpriseResp> frontSearch(EnterpriseReq req);

    /**
     * 查询商家信息
     * @param req
     * @return
     */
    EnterpriseResp findbyId(EnterpriseInfoReq req);
}
